package com.obas.business.element.vo.editor;

import java.util.StringTokenizer;

import com.ease.common.vo.editor.AbstractObjectEditor;
import com.obas.model.business.DeviceMacAddress;

public class HwDefaultTelnetMacAddressEditor extends AbstractObjectEditor<DeviceMacAddress> {

	public DeviceMacAddress editAsText(String text) {

		StringTokenizer st = new StringTokenizer(text);
		DeviceMacAddress deviceMacAddress = new DeviceMacAddress();

		//
		String macAddress = st.nextToken();

		deviceMacAddress.setMacAddress(macAddress);

		return deviceMacAddress;
	}

}
